package com.longdaji.decoration.ui.shippingaddr;


import com.longdaji.decoration.base.BasePresenter;
import com.longdaji.decoration.base.BaseView;
import com.longdaji.decoration.data.bean.AddressBean;

import java.util.List;

/**
 * Created by longtao on 2017/12/19.
 */

public interface ShippingAddrContract {

    interface View extends BaseView {
        void showAddrsList(List<AddressBean.Address> addressList);

        void showNoData();

        void showDeleteAddrSuccess();

        void showDeleteAddrFail();

        void setDefaultAddrSuccess();

        void setDefaultAddrFail();

    }

    interface Presenter extends BasePresenter<View> {
        void getAddrsList(String userId);

        void deleteCurAddr(String userId, int shippingId);

        void setDefaultAddr(String userId, String defaultAddr, int shippingId);

    }
}
